<template>
  <div class="file-load" @click="download">
    <div class="name">
      <span :title="info.name">{{info.name}}</span>
    </div>
    <div class="icon">
      <Icon type="ios-cloud-download" />
    </div>
  </div>
</template>
<script>
export default {
  props: {
    info: {
      typeof: Object,
      default: ()=> {}
    }
  },
  methods: {
    download() {
      this.info.content && (window.location.href = this.info.content)
      console.log(this.info.content)
    }
  }
}
</script>